package com.marktotop.file.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 通过@ConfigurationProperties获取配置文件的相关配置属性注入bean中
 * @author WXLD
 * @data 2021/4/16 - 8:59
 */
@Component
@ConfigurationProperties(prefix = "upload")
@Data
public class FastdfsConfig {

    private String baseUrl;

    private List<String> allowTypes;
}
